package fun.chutianshu.springsecurity_01.controllers;

import fun.chutianshu.springsecurity_01.util.RespBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

// 接口 /hello 不能被匿名访问
// 必须包含 token 才能访问
@RestController
@ResponseBody
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "你好，吃了没!";
    }
}
